package com.flowable.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.flowable.pojo.Leave;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 长沙先飞信息科技有限公司<br>
 * Created with IntelliJ IDEA.<br>
 * Date:2024/7/8<br>
 * Time:12:51<br>
 * 功能描述：<br>
 *
 * @author huang hou chun
 * @since JDK 1.8 <br>
 * Copyright (c) 2023 www.csxfrj.com System Incorporated All Rights Reserved.
 */
public interface LeaveMapper extends BaseMapper<Leave> {

    @Update("update `event_leave` set leader_approved = #{leaderApproved} where process_instance_id = #{processInstanceId}")
    void updateByProcessInstanceId(Leave leave);
}
